package com.fzf.org.dto.req.user;


import com.fzf.org.anno.MyPassword;
import com.fzf.org.anno.MyPhone;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserRegisterReqDTO {
    @Size(min = 6, max = 20)
    private String account;

    @MyPassword
    private String password;

    @NotNull
    private String name;

    @MyPhone
    private String phone;
}

